import Vue from 'vue';
import Vuex from 'vuex';
import app from './modules/app';
import user from './modules/user';
import medium from './modules/medium';
import getters from './getters';
import options from './modules/options';
import resourceInfo from './modules/resourceInfo';
import resourceView from './modules/resourceView';
import sealing from './modules/sealing';
import process from './modules/process';
import formMake from './modules/formMake';
import filter from './modules/filter';
import richEditor from './modules/richEditor';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    user,
    medium,
    options,
    resourceInfo,
    sealing,
    process,
    formMake,
    filter,
    richEditor,
    resourceView
  },
  getters
});

export default store;
